package ooday01;

public class ShuiDemo {
    public static void main(String[] args) {
        int a = 153;
        int a1 = a/100; // 1
        int a2 = a/10%10; // 5
        int a3 = a%10;   // 3
        if (a==a1*a1*a1+a2*a2*a2+a3*a3*a3){
            System.out.println(a+"是水仙花数");
        }
    }
}
